package com.cqwu.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Tutor entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tutor", catalog = "common")
public class Tutor implements java.io.Serializable {

	// Fields

	private Integer id;
	private String tutorName;
	private String loginName;
	private String loginPwd;
	private String gender;
	private Integer birthday;
	private String department;
	private String telephone;
	private String idCard;
	private String researchArea;
	private String researchResult;
	private String introduce;

	// Constructors

	/** default constructor */
	public Tutor() {
	}

	/** minimal constructor */
	public Tutor(String tutorName, String department, String telephone,
			String researchArea, String researchResult, String introduce) {
		this.tutorName = tutorName;
		this.department = department;
		this.telephone = telephone;
		this.researchArea = researchArea;
		this.researchResult = researchResult;
		this.introduce = introduce;
	}

	/** full constructor */
	public Tutor(String tutorName, String loginName, String loginPwd,
			String gender, Integer birthday, String department,
			String telephone, String idCard, String researchArea,
			String researchResult, String introduce) {
		this.tutorName = tutorName;
		this.loginName = loginName;
		this.loginPwd = loginPwd;
		this.gender = gender;
		this.birthday = birthday;
		this.department = department;
		this.telephone = telephone;
		this.idCard = idCard;
		this.researchArea = researchArea;
		this.researchResult = researchResult;
		this.introduce = introduce;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "tutorName", nullable = false, length = 10)
	public String getTutorName() {
		return this.tutorName;
	}

	public void setTutorName(String tutorName) {
		this.tutorName = tutorName;
	}

	@Column(name = "loginName", length = 20)
	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	@Column(name = "loginPWD", length = 32)
	public String getLoginPwd() {
		return this.loginPwd;
	}

	public void setLoginPwd(String loginPwd) {
		this.loginPwd = loginPwd;
	}

	@Column(name = "gender", length = 1)
	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Column(name = "birthday")
	public Integer getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Integer birthday) {
		this.birthday = birthday;
	}

	@Column(name = "department", nullable = false, length = 50)
	public String getDepartment() {
		return this.department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	@Column(name = "telephone", nullable = false, length = 12)
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "idCard", length = 18)
	public String getIdCard() {
		return this.idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	@Column(name = "researchArea", nullable = false, length = 50)
	public String getResearchArea() {
		return this.researchArea;
	}

	public void setResearchArea(String researchArea) {
		this.researchArea = researchArea;
	}

	@Column(name = "researchResult", nullable = false, length = 65535)
	public String getResearchResult() {
		return this.researchResult;
	}

	public void setResearchResult(String researchResult) {
		this.researchResult = researchResult;
	}

	@Column(name = "introduce", nullable = false, length = 65535)
	public String getIntroduce() {
		return this.introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

}